package sum.book.order.server.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import sum.book.common.core.model.dto.SimpleEntity;


/**
 * @Auther: ZhangGN
 * @Description: Feign配置生效测试
 * @Date 2022/12/6 10:22
 **/
@RestController
public class FeignClientTestController {


    @GetMapping(value = "/feign/test")
    public SimpleEntity<String> testFeign() throws Exception {
//        Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
//        System.out.println("authentication = " + authentication.getName());
        return new SimpleEntity<>("调用成功");
    }
}
